import QRequest from '@/service/index';
import {
    OrderListParams,
    SelfControlResponse,
    UnSelfControlResponse,
    ProcessParams,
    ProcessResponse
} from './model/type';

/**
 * @: 分页查询排程明细自制生产
 */
export const doGetSelfControlList = (params: OrderListParams) => {
    return QRequest.get<SelfControlResponse>(`/schedule/self/control`, { params });
};

/**
 * @: 分页查询排程明细自治生产
 */
export const doGetUnSelfControlList = (params: OrderListParams) => {
    return QRequest.get<UnSelfControlResponse>(`/schedule/un-self/control`, { params });
};

/**
 * @: 分页查询工序列表明细
 */
export const doProcessDetail = (params: ProcessParams) => {
    return QRequest.get<ProcessResponse>(`/schedule/process/detail`, { params });
};
